package com.kavadani.dialogs;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import com.kavadani.profiles.R;

public class LongMessage {
	
	public static final void show(Activity owner, String title, String message) {
		AlertDialog dlg = showLongMessageDialog(owner, title, message);
		dlg.show();
	}
	
	// ---------------------------------------------------------------------------------------------
	
	private static AlertDialog showLongMessageDialog(Activity owner, String title, String message) {
		return new AlertDialog.Builder(owner)
        .setIcon(android.R.drawable.ic_dialog_alert)
        .setTitle(title)
        .setMessage(message)
        .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int whichButton) {

                /* User clicked OK so do some stuff */
            }
        })
        .setNeutralButton(R.string.alert_dialog_neutral, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int whichButton) {

                /* User clicked Something so do some stuff */
            }
        })
        .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int whichButton) {

                /* User clicked Cancel so do some stuff */
            }
        })
        .create();
	}
	
}
